package com.derbysoft.dswitch.adapter.ihg.common.repository;

import com.derbysoft.dswitch.adapter.ihg.common.domain.FreeMealStrategy;
import com.derbysoft.dswitch.adapter.ihg.web.action.support.Paginater;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * User: jason
 * Date: 2013-01-05
 */
public interface FreeMealStrategyRepository {

    FreeMealStrategy load(String channel, String hotel, String ratePlan, String roomType);

    Paginater paginater(FreeMealStrategy freeMealStrategy, Paginater paginater);

    FreeMealStrategy save(FreeMealStrategy freeMealStrategy);

    FreeMealStrategy load(Long id);

    void delete(FreeMealStrategy existed);

    @Transactional(readOnly = false)
    void saveAll(List<FreeMealStrategy> freeMealStrategies);
}
